/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. 
 */
package com.icinfo.cloud.provider.punish.ucaseassist.assistmain.controller;

import com.icinfo.cloud.provider.punish.ucaseassist.assistmain.service.ICaseAssistMainInfoService;
import com.icinfo.cloud.provider.punish.ucaseassist.assistmain.vo.CaseAssistMainInfosVo;
import com.icinfo.framework.common.web.Result;
import com.icinfo.framework.core.web.BaseController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 描述: 案件副流程主表 case_assist_main_info 对应的Controller类.<br>
 *
 * @author framework generator
 * @date 2022年08月18日
 */
@RestController
@RequestMapping("/punish/ucaseassist/assistmain")
public class CaseAssistMainInfoController extends BaseController {
    /**
     * 日志记录器
     */
    private static final Logger logger = LoggerFactory.getLogger(CaseAssistMainInfoController.class);

    @Autowired
    private ICaseAssistMainInfoService caseAssistMainInfoService;

    /**
     * 【V1.4.1】描述：获取案件子（副）流程相关信息总和
     * @author tianrunjia
     * @date 2022-08-18
     * @return
     */
    @GetMapping("/getCaseAssistMainAllInfos")
    public Result<List<CaseAssistMainInfosVo>> doGetCaseAssistMainAllInfos(@RequestParam(value="caseId") String caseId) {
        List<CaseAssistMainInfosVo> caseAssistMainInfosVoList = caseAssistMainInfoService.getCaseAssistMainInfosList(caseId);
        return Result.success("获取成功！",caseAssistMainInfosVoList);
    }
}